#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1()
{
    vector<int> v = {2,7,11,15};
    vector<int> res = Solution().twoSum(v,9);
    if (res[0] == 0 && res[1] == 1)
    {
        std::cout << "Test 1 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 1 .... Failed" << std::endl;
    }
}

void Test2()
{
    vector<int> v = {3,2,4};
    vector<int> res = Solution().twoSum(v,6);
    if (res[0] == 1 && res[1] == 2)
    {
        std::cout << "Test 2 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 2 .... Failed" << std::endl;
    }
}

void Test3()
{
    vector<int> v = {3,3};
    vector<int> res = Solution().twoSum(v,6);
    if (res[0] == 0 && res[1] == 1)
    {
        std::cout << "Test 3 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 3 .... Failed" << std::endl;
    }
}

int main()
{
    Test1();
    // std::cout << "ceshi...." <<std::endl;
    Test2();

    Test3();

    return 0;
}